//
//  FZHomeHotVideoSectionFooterView.m
//  KidDubbing
//
//  Created by CyonLeuPro on 16/4/19.
//  Copyright © 2016年 Feizhu Tech. All rights reserved.
//

#import "FZHomeHotVideoSectionFooterView.h"

@implementation FZHomeHotVideoSectionFooterView

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];
    self.changeButton.layoutDirection = FZDirectionButtonLayoutHorizontalImageLeft;
    [self.changeButton setImage:[UIImage imageNamed:@"home_refresh"] forState:UIControlStateNormal];
    [self.changeButton setTitle:@"换一批看看" forState:UIControlStateNormal];
    
    self.changeButton.titleLabel.font = css.fontOfH3;
    [self.changeButton setTitleColor:css.colorOfListSubtitle forState:UIControlStateNormal];
    [self.changeButton setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithHex:0xf8f8f8]] forState:UIControlStateNormal];
    [self.changeButton setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithHex:0xebebeb]] forState:UIControlStateHighlighted];

    self.changeButton.layer.cornerRadius = 16;
    self.changeButton.layer.masksToBounds = YES;
    self.changeButton.tintColor = css.colorOfListSubtitle;
    [self.changeButton addTarget:self action:@selector(onChangeButton:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)onChangeButton:(UIButton *)sender {
    /**
     *  热门视频换一批看看按钮
     */
    if (self.clickChangeButtonBlock) {
        self.clickChangeButtonBlock(sender, nil);
    }
}



@end
